home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5272 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: Inter.NL.net!usenet
  2. From: K.Klijnsma@net.HCC.nl (Kelvin Klijnsma)
  3. Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer,comp.lang.c
  4. Subject: Borland C/C++ 4.02 Executable size [possible repost]
  5. Date: Fri, 09 Feb 1996 14:00:23 GMT
  6. Organization: Inter.NL.net, The Internet Provider in The Netherlands.
  7. Message-ID: <4ffk0c$6h4@altrade.nijmegen.inter.nl.net>
  8. Reply-To: K.Klijnsma@net.HCC.nl
  9. NNTP-Posting-Host: lw99-4.leeuwarden.nl.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. [This message is a repost. My news server seems to have been down on
  13. 8-2-1996. I'm sorry if you've already read my previous message. Please
  14. repost any reply you may have sent to my previous message. Thanks!]
  15.  
  16. Hi,
  17.  
  18. I really like Borland C++ 4.02 but one thing that's very annoying
  19. (IMHO) is the minimum size of an executable. At the moment I only do
  20. some DOS programming, but even the most simple utility will at least
  21. take about 30K. I know that the compiler links in some startup code
  22. and some necessary libs, but my question is: is there any way of
  23. reducing the size of the executable. For instance, in Borland Pascal
  24. you have smart linking and a simple utility need not be larger than
  25. say 5K.
  26. Please note that I'm used to program in TASM, i.e. I'm used to being
  27. in control of what exactly is linked into the program (I guess that's
  28. really why the minimum size of 30K bothers me :-).
  29.  
  30. In short:
  31.  
  32.  - How do I reduce the size of compiled C programs for DOS.
  33.    (And yes, I am aware of executable compressors).
  34.  - I would like a solution that works for all memory models.
  35.    (Except tiny model: this model does indeed allow me to
  36.    produce smaller executables, but I prefer small model).
  37.  
  38. I appreciate all solutions, suggestions and pointers!
  39.  
  40.      ________________________________________________
  41.     |_                                              _|
  42.    (__)              Kelvin Klijnsma               (__)
  43.    (___)          K.Klijnsma@net.HCC.nl           (___)
  44.    (__)   http://www.inter.nl.net/hcc/K.Klijnsma   (__)
  45.     |________________________________________________|
  46.  
  47.